import QtQuick 1.0
 
Rectangle {
    id: main_window
    width: 400
    height: 300

    signal quit

    Grid
    {
        anchors.centerIn: parent

        columns: 1
        spacing: parent.height/5

        Grid
        {
            columns: 3
            spacing: 8   
            String {text: "One"; color: "red"}
            String {text: "Two"; color: "green"}
            String {text: "Three"; color: "blue"}
            String {text: "Four"; color: "black"}
            String {text: "Five"; color: "yellow"}
            String {text: "Six"; color: "pink"} 
        }
    
        Grid
        {
            columns: 3
            spacing: 8   
            String {text: "One"; color: "red";style:Text.Sunken}
            String {text: "Two"; color: "green";style:Text.Sunken}
            String {text: "Three"; color: "blue";style:Text.Sunken}
            String {text: "Four"; color: "black";style:Text.Sunken}
            String {text: "Five"; color: "yellow";style:Text.Sunken}
            String {text: "Six"; color: "pink";style:Text.Sunken}
        }

        Rectangle
        {
            width: parent.width
            height: main_window.height/6

            Text
            {
                anchors.centerIn: parent
                text: "<b><i>点这里关闭</i></b>"
                style: Text.Sunken; styleColor: "gray"; smooth: true
                font.pixelSize: parent.height * .7
                MouseArea
                {
                    anchors.fill: parent
                    onClicked: main_window.quit()
                } 
            }
        }
    }

    
}